package com.beep.erp.model.login;

import com.beep.erp.common.base.BasePresenter;
import com.beep.erp.common.base.BaseView;
import com.beep.erp.common.bean.LoginBean;

import rx.Observable;

/**
 * Created by Jolly on 2018/8/24.
 */

public interface LoginContract {
    interface Model {
        Observable<LoginBean> login(String username, String pwd);

    }

    interface View extends BaseView {
        void login(LoginBean loginBean);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void login(String username, String pwd);
    }
}
